package androidx.core.graphics.drawable;

import android.content.res.ColorStateList;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import o.pb;

@RestrictTo({d.ˏ})
public class IconCompatParcelizer {
    public static IconCompat read(pb pbVar) {
        IconCompat iconCompat = new IconCompat();
        iconCompat.ˊ = pbVar.ˊ(iconCompat.ˊ, 1);
        iconCompat.ˎ = pbVar.ॱ(iconCompat.ˎ, 2);
        iconCompat.ˋ = pbVar.ˎ(iconCompat.ˋ, 3);
        iconCompat.ˏ = pbVar.ˊ(iconCompat.ˏ, 4);
        iconCompat.ॱॱ = pbVar.ˊ(iconCompat.ॱॱ, 5);
        iconCompat.ʽ = (ColorStateList) pbVar.ˎ(iconCompat.ʽ, 6);
        iconCompat.ʼ = pbVar.ˋ(iconCompat.ʼ, 7);
        iconCompat.ˊ();
        return iconCompat;
    }

    public static void write(IconCompat iconCompat, pb pbVar) {
        pbVar.ॱ(true, true);
        iconCompat.ˊ(pbVar.ॱ());
        if (-1 != iconCompat.ˊ) {
            pbVar.ˏ(iconCompat.ˊ, 1);
        }
        if (iconCompat.ˎ != null) {
            pbVar.ˏ(iconCompat.ˎ, 2);
        }
        if (iconCompat.ˋ != null) {
            pbVar.ˏ(iconCompat.ˋ, 3);
        }
        if (iconCompat.ˏ != 0) {
            pbVar.ˏ(iconCompat.ˏ, 4);
        }
        if (iconCompat.ॱॱ != 0) {
            pbVar.ˏ(iconCompat.ॱॱ, 5);
        }
        if (iconCompat.ʽ != null) {
            pbVar.ˏ(iconCompat.ʽ, 6);
        }
        if (iconCompat.ʼ != null) {
            pbVar.ˏ(iconCompat.ʼ, 7);
        }
    }
}
